package com.love.marriage.userActivityInfo.mapper;

import com.love.marriage.userActivityInfo.entity.UserActivityInfo;
import com.love.marriage.userActivityInfo.vo.UserActivityInfoVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import com.love.marriage.common.interfaces.permission.DataPermission;

/**
 * description:  用户活动信息表 mapper
 * author:       mybatisPlus
 * createDate:   2024-11-09 23:53:07
 * version:      1.0.0
 */
@Mapper
public interface UserActivityInfoMapper extends BaseMapper<UserActivityInfo> {

    @DataPermission(table = "user_activity_info_t")
    Page<UserActivityInfoVo> getPage(Page<UserActivityInfoVo> page, @Param("userActivityInfoVo") UserActivityInfoVo userActivityInfoVo);

    UserActivityInfoVo queryUserActivityInfo(@Param("id") Long id);

    UserActivityInfoVo queryUserActivityInfoByUser(@Param("userId") Long userId);
}
